package com.maxatime.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maxatime.dao.StudentRegisterMapper;
import com.maxatime.pojo.entity.StudentRegister;
import com.maxatime.service.LoginService;


@Service
public class LoginServiceImpl implements LoginService{
	
	@Autowired
	StudentRegisterMapper studentRegisterMapper;
	
	@Override
	public StudentRegister map(String email, String password) {
		// TODO Auto-generated method stub
		Map<String, Object > m = new HashMap<>();
		
		StudentRegister studentRegister = new StudentRegister();
		studentRegister.setEmail(email);
		studentRegister.setPassword(password);
		
		
		StudentRegister studentRegister1 = studentRegisterMapper.studentRegister(studentRegister);
		
		
		
		return studentRegister1;
	}

	
}
